package com.heo.pojo;

public class RegisterEntity extends BaseEntity {

	private static final long serialVersionUID = 1L;

	private int province;
	private int city;
	private String factoryId;// 制造商 ID
	private String terminalModel;
	private String bluetooth; //
	private String lockType;
	private String iccid;//终端 SIM 卡 ICCID
	
	public  RegisterEntity (String bodyHex){
		String provinceStr = bodyHex.substring(0, 4);
		String cityStr = bodyHex.substring(4, 8);
		factoryId = bodyHex.substring(8, 18);
		terminalModel = bodyHex.substring(18, 58);
		bluetooth = bodyHex.substring(58, 70);
		lockType = bodyHex.substring(72, 74);
		iccid = bodyHex.substring(74, 94);
	}
	
	public int getProvince() {
		return province;
	}
	public void setProvince(int province) {
		this.province = province;
	}
	public int getCity() {
		return city;
	}
	public void setCity(int city) {
		this.city = city;
	}
	public String getFactoryId() {
		return factoryId;
	}
	public void setFactoryId(String factoryId) {
		this.factoryId = factoryId;
	}
	public String getTerminalModel() {
		return terminalModel;
	}
	public void setTerminalModel(String terminalModel) {
		this.terminalModel = terminalModel;
	}
	public String getBluetooth() {
		return bluetooth;
	}
	public void setBluetooth(String bluetooth) {
		this.bluetooth = bluetooth;
	}
	public String getLockType() {
		return lockType;
	}
	public void setLockType(String lockType) {
		this.lockType = lockType;
	}
	public String getIccid() {
		return iccid;
	}
	public void setIccid(String iccid) {
		this.iccid = iccid;
	}
}
